package com.stylefeng.guns.modular.vpnuserinfo.service;

import com.stylefeng.guns.modular.system.model.VpnUserInfo;
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.modular.vpn.dto.UserQueryDTO;
import com.stylefeng.guns.modular.vpn.vo.Paging;
import com.stylefeng.guns.modular.vpn.vo.UserListFilterDataVO;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author stylefeng
 * @since 2020-03-02
 */
public interface IVpnUserInfoService extends IService<VpnUserInfo> {
    List<Map<String,Object>> findAllUsers(String userName,String beginTime,
                                          String endTime,String packageId);


    Paging findUserPage(UserQueryDTO userQueryDTO);

    UserListFilterDataVO getFilterData();

    void exportExcel(String userName, String beginTime, String endTime, String packageName, HttpServletResponse response);

    /**
     * 重置密码
     * @param userName
     * @param pwd
     */
    void resetPwd(String userName,String pwd);

    /**
     * 禁用用户账号
     * @param userName
     * @param status
     */
    void disableUser(String userName,Integer status);

    /**
     * 添加VIP套餐
     * @param userName
     * @param packageId
     */
    Object addVipPackage(String userName,String packageId);
}
